﻿@using Carer.Data.Enum
@using Carer.View
@model Carer.Crm.ViewModel.IndexModel

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />

    <link href="~/Content/Bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/jQuery/jquery-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/jQuery/jquery-ui-timepicker-addon.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/jQuery/jquery.paginate.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/Layout/layout.css" rel="stylesheet" type="text/css" />

    <script src="~/Content/jQuery/jquery-1.10.1.min.js" type="text/javascript"></script>
    <script src="~/Content/Bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="~/Content/jQuery/jquery.hoverIntent.minified.js" type="text/javascript"></script>
    <script src="~/Content/jQuery/jquery-ui.min.js" type="text/javascript"></script>
    <script src="~/Content/jQuery/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
    <script src="~/Content/jQuery/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <script src="~/Content/jQuery/jquery-ui-timepicker-zh-CN.js" type="text/javascript"></script>
    <script src="~/Content/jQuery/jquery.paginate.js" type="text/javascript"></script>
    <script src="~/Content/jQuery/jquery.form.js" type="text/javascript"></script>
    <script src="~/Content/jquery-validation/jquery.validate.min.js" type="text/javascript"></script>
    <script src="~/Content/jquery-validation/additional-methods.js?v=@MvcApplication.TimeStamp" type="text/javascript"></script>
    <script src="~/Content/jquery-validation/messages_zh.min.js" type="text/javascript"></script>
    <script src="~/Content/Layout/layout.js?v=@MvcApplication.TimeStamp" type="text/javascript"></script>

</head>
<body>

    <div id="header">
        <div class="title">
            <a href="/"><img src="/Content/Layout/logo.png" alt="logo" />康护之星</a>
        </div>
        <div class="right">
            <ul class="quick">
                @Html.Partial("_IndexUnitPartial", Model)
                <li><a href="#"><i class="fa fa-user"></i> @Model.UserName</a></li>
                <li><a href="/Home/Logout"><i class="fa fa-sign-out"></i> 退 出</a></li>
            </ul>
        </div>
    </div>

    <div id="content">
        <div id="nav">
            <div class="title"><img src="~/Content/Layout/menu.png" width="24" height="24" alt="" /> 功能菜单</div>
            <ul class="nav top">
                @if (Model.Role == EnumRole.Platform_Manager)
                {
                    <li>
                        <a href="javascript:void(0)" data-toggle="collapse" data-target="#sub1">
                            <i class="fa fa-gear fa-lg"></i> 系统管理<span class="arrow"></span>
                        </a>
                        <ul id="sub1" class="nav sub">
                            <li class=""><a href="/Config/UnitView">单位管理</a><i></i></li>
                            <li class=""><a href="/Config/UserView">用户管理</a><i></i></li>
                        </ul>
                    </li>
                }
                <li>
                    <a href="javascript:void(0)" data-toggle="collapse" data-target="#sub2"><i class="fa fa-book fa-lg"></i> 信息维护 <span class="arrow"></span></a>
                    <ul id="sub2" class="nav sub">
                        <li class=""><a href="/Maintain/CrewTypeView">人员性质</a><i></i></li>
                        <li class=""><a href="/Maintain/CategoryView">服务类别</a><i></i></li>
                        <li class=""><a href="/Maintain/ServiceView">服务项目</a><i></i></li>
                        <li class=""><a href="/Maintain/PaymentView">结算标准</a><i></i></li>
                        <li class=""><a href="/Business/CrewView">人员档案</a><i></i></li>
                        <li class=""><a href="/Business/CustomerView">客户档案</a><i></i></li>
                    </ul>
                </li>
                <li>
                    <a href="javascript:void(0)" data-toggle="collapse" data-target="#sub3"><i class="fa fa-calendar fa-lg"></i> 业务管理<span class="arrow"></span></a>
                    <ul id="sub3" class="nav sub">
                        <li class=""><a href="/Business/OrderView">订单管理</a><i></i></li>
                        <li class=""><a href="/Business/ScheduleView">排班管理</a><i></i></li>

                        <li class=""><a href="/Business/BonusView">费用管理</a><i></i></li>
                        <li class=""><a href="/Business/WorkView">工量计算</a><i></i></li>
                        <li class=""><a href="/Business/PayView">结算计算</a><i></i></li>
                        <li class=""><a href="/Business/RevenueView">收入统计</a><i></i></li>
                        <li class=""><a href="/Business/WageView">结算统计</a><i></i></li>
                    </ul>
                </li>
            </ul>
        </div>
        <div id="main">

            <div class="location">
                <span>位置：</span>
                <ul>
                    <li><a href="/">首页</a></li>
                    @foreach (var menu in Model.MenuAddr)
                    {
                        <li>@menu</li>
                    }
                </ul>
            </div>

            <div class="content">
                @RenderBody()
            </div>


        </div>
    </div>
    @RenderSection("scripts", required: false)
</body>
</html>
